package com.volcreate.week1;

import java.util.Scanner;

/**
 * @author zxc
 * @date 2020/9/20
 */

public class Main8 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        int oddNum = 0;
        int oddSum = 0;
        int evenNum = 0;
        int evenSum = 0;
        for (int i1 = 0; i1 < i; i1++) {
            int i2 = scanner.nextInt();
            if (i2 % 2 == 0) {
                evenNum++;
                evenSum += i2;
            } else {
                oddNum++;
                oddSum += i2;
            }
        }
        System.out.println("奇数和=" + oddSum + ", 偶数和=" + evenSum);
    }

}

